
import { Injectable, Injector } from '@angular/core';
import { NgRepository } from '@farris/devkit';
import { BefRepository, NgVariable } from '@farris/bef';
import { JmdddEntity } from './entities/jmdddentity';

import { JmdddProxy } from './jmdddproxy';

@Injectable()
@NgRepository({
    apiUrl: 'api/businessdevelopmentcenter/jmgl/v1.0/ddzz_frm',
    entityType: JmdddEntity
})
export class JmdddRepository extends BefRepository<JmdddEntity> {
    public name = 'JmdddRepository';

    public proxy: JmdddProxy;
    public paginationInfo = {
        JmdddEntity: {
            pageSize: 20,
        }
    };
    constructor(injector: Injector) {
        super(injector);
        this.proxy = injector.get(JmdddProxy, null);
    }
}